﻿<!DOCTYPE html>
<html ng-app="piclist.app">

<head>
    <meta charset=utf-8>
    <meta name=description content="">
    <meta name=viewport content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <title>相片列表</title>
    <link rel="stylesheet" type="text/css" href="lib/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="css/common.css">
    <link rel="stylesheet" type="text/css" href="css/picturelist.css">
    <!--[if lte IE 8]>
    <script src="js/ie8.js"></script>
    <![endif]-->
    <script src='js/common.js'></script>
    <script src='lib/jquery/dist/jquery.min.js'></script>
    <script src='lib/angular/angular.min.js'></script>
    <script src="lib/angular-bootstrap/ui-bootstrap-tpls.min.js"></script>
    <script src="js/qf.common.js"></script>
    <script src="js/picturelist.js"></script>
</head>

<body ng-controller="pagectrl as vm">
    <h2 ng-if="!globalParam.canRED()">
        当前登录用户没有该模块的权限
    </h2>
    <div class="con" ng-if="globalParam.canRED()">
        <div class="title">
            {{vm.type}}—{{vm.remark}}
            <a class="butn butn-b" ng-if="globalParam.canUPD() && vm.picArr" ng-href="editpictureremark.html?{{editParamString}}">编辑</a>
            <input type="button"
            class="butn butn-b"
            ng-click="vm.delAll()"
            ng-if="globalParam.canDEL() && vm.picArr"
            value="删除">
            <a ng-href="index.html?{{globalParam.paramString()}}" class='right'>返回>></a>
        </div>
        <div class="pic-group">
            <div class="group" ng-repeat="(groupName,pics) in vm.picArr">
                <div class="group-name">
                    {{groupName}}
                </div>
                <ul>
                    <li ng-repeat="item in pics">
                        <div class="img-box">
                            <span>
                                <img ng-src="api/resource/{{item.ID}}" alt="{{item.FILENAME}}" ng-click="showImage(groupName,$index)" />
                            </span>
                        </div>
                        <div>{{item.FILENAME}}</div>
                    </li>
                </ul>
            </div>
        </div>
    </div>

</body>

</html>
